package com.jia;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;

@Slf4j
@SpringBootApplication
@MapperScan("com.jia.mapper")
public class SpringsecurityRbacApplication {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(SpringsecurityRbacApplication.class, args);
        String serverPort = context.getEnvironment().getProperty("server.port");
        log.info("project started at http://localhost:" + serverPort);
    }
}
